import request from '@/utils/request'



//线路启动
export function operationLineStart(key, startList) {
  return request({
    url: `quartz/operation/editStatus/${key}`,
    method: 'put',
    params: startList
  })
}

//卧理机强制出笼
export function forceComeRecumentGrid(params) {
  return request({
    url: `/quartz/machine/forceCome`,
    method: 'post',
    params
  })
}


//卧理机冻结格子
export function stopRecumentGrid(data) {
  return request({
    url: `/quartz/machine/freeze`,
    method: 'post',
    data
  })
}



// 修改玻璃信息
export function updateGlassState(id, state) {
  return request({
    url: '/quartz/operation/state',
    method: 'put',
    params: { id, state }
  })
}


//100 后报损
// 修改玻璃信息
export function abnormal(id, state) {
  return request({
    url: 'quartz/operation/test/abnormal',
    method: 'put',
    params: { id, state }
  })
}


